package ru.papergames.model.binsocket.events
{
	import flash.events.Event;

	public class SocketConnectionEvent extends Event
	{
		
		public static const SOCKET_CONNECTED:String = 'SocketConnectionEvent.SOCKET_CONNECTED';
		public static const SOCKET_CLOSED:String = 'SocketConnectionEvent.SOCKET_CLOSED';
		public static const SOCKET_DATA:String = 'SocketConnectionEvent.SOCKET_DATA';
		public static const SOCKET_FAULT_DATA:String = 'SocketConnectionEvent.SOCKET_FAULT_DATA';
		public static const SOCKET_ERROR:String = 'SocketConnectionEvent.SOCKET_ERROR';
		
		public var data:Object;
		
		public function SocketConnectionEvent(type:String, data:Object = null)
		{
			super(type, false, false);
			this.data = data;
		}
		
	}
}